package com.lzzzz.gulimall.gulimallproduct.feign;

import com.lzzzz.common.to.SkuReductionTo;
import com.lzzzz.common.to.SpuBoundTo;
import com.lzzzz.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description
 * @Author LZ.
 * @Date 2023/3/3 11:01
 * @Version 1.0
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    @PostMapping("/gulimallcoupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    @PostMapping("/gulimallcoupon/skufullreduction/saveinfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
